"""
    Definite Error Handler
    :Author: MiaLi
"""
from flask import render_template

from messageboard import app


@app.errorhandler(404)
def response_error_page(e):
    return render_template('errors/error.html', exception=e), e.code


@app.errorhandler(500)
def internal_server_error(e):
    return render_template('errors/500.html'), 500

